#include <iostream>
#include <cstdio>

using namespace std;

#define N 220

int n, m, k;
int x[N];
int y[N];

int abs(int k) { return k > 0 ? k : -k; }

bool judge(int a, int b) {
    if ( abs(x[a] - x[b]) < 2 || abs(y[a] - y[b]) < 2 )
        return true;
    else
        return false;
}

int main() {
    int i, j;
    // freopen("G.in", "r", stdin);
    // freopen("G.out", "w", stdout);
    while (cin >> n >> m >> k) {
        for (i = 0; i < k; i++) {
            cin >> x[i] >> y[i];
        }
        int flag = 1;
        for (i = 0; i < k && flag; i++) {
            for (j = i + 1; j < k && flag; j++) {
                if ( judge(i, j)) flag = 0;
            }
        }
        if ( flag )
            cout << "NO" << endl;
        else
            cout << "YES" << endl;
    }
    return 0;
}